﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlanningGIS.ManageUtility.Modules
{
    /// <summary>
    /// 模板信息
    /// </summary>
    public class MXDInfo
    {
        /// <summary>
        /// 唯一编号
        /// </summary>
        public string ID { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public byte[] Content { get; set; }

        /// <summary>
        /// 是否启用，使用是请用SetEnable，或GetEnable
        /// </summary>
        public string Enable { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="enable"></param>
        public void SetEnable(bool enable)
        {
            Enable = enable ? "1" : "0";
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public bool GetEnable()
        {
            return Enable == "1" ? true : false;
        }
    }

}
